package org.abacus.platform.data;

public class StoreHelper {
	private DataSourceProviderFactory dataSourceProviderFactory;

	public DataSourceProviderFactory getDataSourceProviderFactory() {
		return dataSourceProviderFactory;
	}

	public void setDataSourceProviderFactory(DataSourceProviderFactory dataSourceProviderFactory) {
		this.dataSourceProviderFactory = dataSourceProviderFactory;
	}

	public Store getStore(String sql) {
		return new FetchDatabase(dataSourceProviderFactory.createDataSourceProvider(), sql);
	}
}
